<?php
/**
 * Created by PhpStorm.
 * UsersF: Mloong
 * Date: 2019/1/9
 * Time: 10:25
 */

namespace app\admin\model;


use think\Model;

class Admin extends Model
{
    public static function delOne($id)
    {
        return self::destroy($id);
    }

    public static function findOne($id)
    {
        return self::find($id);
    }
    public static function getAllUser()
    {
        return self::field('username')->select();
    }
}